projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07b53ec
)
Fix configuring lib targets with profile options
author
Alex Crichton
<alex@alexcrichton.com>
Sat, 21 Mar 2015 01:52:32 +0000
(18:52 -0700)
committer
Alex Crichton
<alex@alexcrichton.com>
Sat, 21 Mar 2015 01:52:32 +0000
(18:52 -0700)
src/cargo/util/toml.rs
patch
|
blob
|
history
diff --git
a/src/cargo/util/toml.rs
b/src/cargo/util/toml.rs
index adc7bd90d65254e2ca1d0b0e306b37df62d8f141..ded986ee9f15b469c37a27c99c06e44232109d62 100644
(file)
--- a/
src/cargo/util/toml.rs
+++ b/
src/cargo/util/toml.rs
@@
-670,9
+670,11
@@
fn normalize(libs: &[TomlLibTarget],
vec![if l.plugin == Some(true) {LibKind::Dylib} else {LibKind::Lib}]
});
- dst.push(Target::lib_target(&l.name, crate_types.clone(),
- &path.to_path(),
- metadata.clone()));
+ let mut target = Target::lib_target(&l.name, crate_types.clone(),
+ &path.to_path(),
+ metadata.clone());
+ configure(l, &mut target);
+ dst.push(target);
}
fn bin_targets(dst: &mut Vec<Target>, bins: &[TomlBinTarget],